home *** CD-ROM | disk | FTP | other *** search
/ Aminet 23 / Aminet 23 (1998)(GTI - Schatztruhe)[!][Feb 1998].iso / Aminet / misc / emu / amiSPIMsrc.lha / cl-tlb.h < prev    next >
C/C++ Source or Header  |  1992-11-06  |  1KB  |  48 lines

  1. /* SPIM S20 MIPS Cycle Level simulator.
  2.    Definitions for the SPIM S20 Cycle Level Simulator (SPIM-CL).
  3.    Copyright (C) 1991-1992 by Anne Rogers (amr@cs.princeton.edu) and
  4.    Scott Rosenberg (scottr@cs.princeton.edu)
  5.    ALL RIGHTS RESERVED.
  6.  
  7.    SPIM-CL is distributed under the following conditions:
  8.  
  9.      You may make copies of SPIM-CL for your own use and modify those copies.
  10.  
  11.      All copies of SPIM-CL must retain our names and copyright notice.
  12.  
  13.      You may not sell SPIM-CL or distributed SPIM-CL in conjunction with a
  14.      commerical product or service without the expressed written consent of
  15.      Anne Rogers.
  16.  
  17.    THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
  18.    IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
  19.    WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  20.    PURPOSE.
  21. */
  22.  
  23. /* Translation Lookaside Buffer simulation module header */
  24.  
  25. /* Exported Functions */
  26. #ifdef __STDC__
  27. void tlb_init (void);
  28. int tlb_vat (mem_addr addr, unsigned int pid, int l_or_s, mem_addr *paddr);
  29. void tlbp (void);
  30. void tlbr (void);
  31. void tlbwi (void);
  32. void tlbwr (void);
  33. void tlb_service (unsigned int pid, int l_or_s);
  34. #else
  35. void tlb_init ();
  36. int tlb_vat ();
  37. void tlbp ();
  38. void tlbr ();
  39. void tlbwi ();
  40. void tlbwr ();
  41. void tlb_service ();
  42. #endif
  43.  
  44.  
  45. /* Exported Variables: */
  46.  
  47. extern int tlb_on;        /* !0 -> tlb handling is on */
  48.